<!--
<ul class="qb_ui_page_menu">
	<li><a href="{:urls('index')}" class="blue si si-present"> 我的商品</a></li>
	<li class="right"><a href="{:urls('postnew')}" class="red fa fa-sign-in"> 发布商品</a></li>
</ul>
-->

<link rel="stylesheet" href="__STATIC__/css/waplistshop.css">

<div class="MyshopBox">
{volist name="listdb" id="rs"}
	<div class="ListShop">
		<dl>
			{notempty name="$rs.picurl"}<!--图片单独显示-->
				<dt><a href="{$rs.url}"><img src="{$rs.picurl|tempdir}" onerror="this.src='__STATIC__/images/nopic.png';"/></a></dt>
			{/notempty}

			<dd>
				{notempty name="$rs.title"}<!--标题单独显示-->
					<div class="t"><a href="{:iurl('show',['id'=>$rs.id])}" target="_blank">{$rs.title}</a></div>
				{/notempty}
					
				<div class="f">
					{if $rs.fid}	<!--栏目信息单独显示-->
						<a href="{:iurl('index',['fid'=>$rs.fid])}" target="_blank">{$rs.fid|get_sort='name'}</a>
					{/if}
					{if isset($rs.status)}	 <!--状态单独显示-->
						{if $rs.status==0} 
							<i style='color:blue;'>未审核</i> 
						{elseif($rs.status==2) /} 
							<span style='color:orange;'>已推荐</span> 
						{else /} 
							<span style='color:red;'>已审核</span> 
						{/if}
					{/if}
					<br>
					{volist name=":fun('field@fields_to_table',$f_array,$rs)" id="vs"} <!--自定义字段-->
						{if($vs.value!==''&&!in_array($vs['name'],['title','picurl','create_time','status'])) /}<!--把标题\图片\时间过滤掉-->
							<span style="margin-right:5px;">{$vs.title}:{$vs.value}</span>
						{/if}
					{/volist}
				</div>
					
				{notempty name="$rs.create_time"}<!--日期单独显示-->
					<div class="time">{$rs.create_time|format_time="Y-m-d H:i"}</div>
				{/notempty}
			</dd>
		</dl>

		<div class="submit">
		{volist name=":fun('field@get_rbtn',$tab_ext['right_button'],$rs,true)" id="vs"}
			{$vs.value}
		{/volist}
		{if empty($f_array)}
			<a href="{:urls('edit',['id'=>$rs['id']])}">修改</a>
			<a href="{:urls('delete',['ids'=>$rs['id']])}" onclick="return confirm('你确认要删除吗?不可恢复');">删除</a>
		{/if}
		</div>
	</div>
{/volist}
</div>


